home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / smc32.exe / OEMSETUP.INF < prev    next >
INI File  |  1994-01-07  |  24KB  |  612 lines

  1. ;
  2. ; SMCEBM setup for 8232 driver
  3. ;
  4.  
  5. [Identification]
  6.     OptionType = NetAdapter
  7. [PlatformsSupported]
  8.     EISA
  9.         "Jazz-Internal Bus"
  10. [Options]
  11.     SMC8232
  12. [FileConstants]
  13. UtilityInf      = "UTILITY.INF"
  14. subroutineinf   = "SUBROUTN.INF"
  15. SoftwareType    = "driver"
  16. Exit_Code       = 0
  17. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  18. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  19. ;NE3200_1BYTE   = 511034
  20. ;SMCEBM_1BYTE    = 8430413
  21. SMC8232_1BYTE    = 8430413
  22.  
  23. Manufacturer    = "SMC"
  24. ProductMajorVersion     = "1"
  25. ProductMinorVersion     = "0"
  26. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  27. ProductSoftwareName     = "SMC8232"
  28. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\smc8232n.sys"
  29. NetRuleSoftwareType     = "smc8232Sys ndisDriver smc8232Driver"
  30. NetRuleSoftwareUse      = $(SoftwareType)
  31. NetRuleSoftwareBindForm = """smc8232Sys"" yes no container"
  32. NetRuleSoftwareClass    = {"smc8232Driver basic"}
  33. NetRuleSoftwareBindable = {"smc8232Driver smc8232Adapter non exclusive 100"}
  34. ProductHardwareName     = "SMC8232"
  35. NetRuleHardwareType     = "smc8232 smc8232Adapter"
  36. NetRuleHardwareBindForm = " yes yes container"
  37. NetRuleHardwareClass    = {"smc8232Adapter basic"}
  38. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  39. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  40. [GeneralConstants]
  41. from      = ""
  42. to        = ""
  43. ExitCodeOk     = 0
  44. ExitCodeCancel = 1
  45. ExitCodeFatal  = 2
  46. KeyNull         = ""
  47. MAXIMUM_ALLOWED   = 33554432
  48. RegistryErrorIndex = NO_ERROR
  49. KeyProduct      = ""
  50. KeyParameters   = ""
  51. TRUE            = 1
  52. FALSE           = 0
  53. NoTitle            = 0
  54. ExitState   = "Active"
  55. OldVersionExisted = $(FALSE)
  56. DriverPath      = $(!STF_NTPATH)\drivers
  57. [date]
  58.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  59. [Identify]
  60.     read-syms Identification
  61.     set Status     = STATUS_SUCCESSFUL
  62.     set Identifier = $(OptionType)
  63.     set Media      = #("Source Media Descriptions", 99, 1)
  64.     Return $(Status) $(Identifier) $(Media)
  65. [ReturnOptions]
  66.     set Status        = STATUS_FAILED
  67.     set OptionList     = {}
  68.     set OptionTextList = {}
  69.     set LanguageList = ^(LanguagesSupported, 1)
  70.     Ifcontains(i) $($0) in $(LanguageList)
  71.         ifstr(i) $($1) == ""
  72.            goto returnoptions
  73.         endif
  74.         set PlatformList = ^(PlatformsSupported, 1)
  75.         Ifcontains(i) $($1) in $(PlatformList)
  76.            goto returnoptions
  77.         else
  78.            set Status = STATUS_NOTSUPPORTED
  79.            goto finish_ReturnOptions
  80.         endif
  81.     else
  82.         set Status = STATUS_NOLANGUAGE
  83.         goto finish_ReturnOptions
  84.     endif
  85. returnoptions = +
  86.     set OptionList     = ^(Options, 1)
  87.     set OptionTextList = ^(OptionsText$($0), 1)
  88.     set Status         = STATUS_SUCCESSFUL
  89. finish_ReturnOptions = +
  90.     Return $(Status) $(OptionList) $(OptionTextList)
  91. [InstallOption]
  92.     set Option   = $($1)
  93.     set SrcDir   = $($2)
  94.     set AddCopy  = $($3)
  95.     set DoCopy   = $($4)
  96.     set DoConfig = $($5)
  97.     set LanguageList = ^(LanguagesSupported, 1)
  98.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  99.         Return STATUS_NOLANGUAGE
  100.     endif
  101.     Debug-Output "OEMNADNE.INF: STF_CWDIR is: "$(!STF_CWDIR)
  102.     Debug-Output "OEMNADNE.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  103.     set-subst LF = "\n"
  104.     read-syms GeneralConstants
  105.     read-syms FileConstants
  106.     read-syms DialogConstants$(!STF_LANGUAGE)
  107.     ifstr(i) $(!NTN_Origination) == "NCPA"
  108.         set Continue = $(OK)
  109.     endif
  110.     read-syms FileConstants$(!STF_LANGUAGE)
  111.     detect date
  112.     set-title  $(FunctionTitle)
  113.     set to   = Begin
  114.     set from = Begin
  115.     set CommonStatus = STATUS_SUCCESSFUL
  116.     EndWait
  117. Begin = +
  118.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  119.         set StartLabel = removeadapter
  120.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  121.         set StartLabel = UpgradeSoftware
  122.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  123.         set StartLabel = bindingadapter
  124.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  125.         set CommonStatus = STATUS_REBOOT
  126.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  127.             Debug-Output "Cannot configure the SMC EBM driver software."
  128.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  129.         else
  130.             Debug-Output "Cannot configure the SMC EBM adapter card."
  131.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_HARDWARE
  132.         endif
  133.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  134.             Debug-Output "ShellCode error: cannot get an error string."
  135.             goto ShellCodeError
  136.         endif
  137.         set Error = $($R0)
  138.         set from = end
  139.         set to = end
  140.         goto nonfatalinfo
  141.     else
  142.         set StartLabel = installadapter
  143.         set OEM_ABANDON_OPTIONS = {}
  144.         set OEM_ABANDON_SOFTWARE = FALSE
  145.         set OEM_ABANDON_ON = TRUE
  146.     endif
  147.     set from = $(fatal)
  148.     set to = $(fatal)
  149.     goto $(StartLabel)
  150. installadapter = +
  151.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  152.     Ifstr $(KeyProduct) != $(KeyNull)
  153.         CloseRegKey $(KeyProduct)
  154.         ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  155.            Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  156.                $(ProductVersion)
  157.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  158.                Debug-Output "ShellCode error: cannot get an error string."
  159.                goto ShellCodeError
  160.            endif
  161.            goto end
  162.         else
  163.            Shell $(UtilityInf), CardExistedDlg
  164.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  165.                Debug-Output "ShellCode error: cannot get an error string."
  166.                goto ShellCodeError
  167.            endif
  168.            ifstr(i) $($R1) != "OK"
  169.                set CommonStatus = STATUS_USERCANCEL
  170.                goto end
  171.            endif
  172.            set OldVersionExisted = $(TRUE)
  173.         endif
  174.     endif
  175.     CloseRegKey $(KeyProduct)
  176.     goto nextstep
  177. configureadapter = +
  178.     set Error = "Configure: Sorry, not yet implemented."
  179.     goto fatal
  180. nextstep = +
  181.     StartWait
  182.     Shell $(UtilityInf), EISAFindBus, $(SMC8232_1BYTE)
  183.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  184.         goto ShellCodeError
  185.     endif
  186.     ifstr $($R0) != "NO_ERROR"
  187.         set Error = $($R0)
  188.         goto fatal
  189.     endif
  190.     ifstr(i) $($R1) == {}
  191.         set Error = $(CANNOT_FIND_ANY_CARD)
  192.         set CommonStatus = STATUS_USERCANCEL
  193.         set from = "end"
  194.         goto nonfatal
  195.     endif
  196.     set AdapterList = $($R1)
  197.     ifint $(OldVersionExisted) == $(FALSE)
  198.         ifstr(i) $(!NTN_InstallMode) == "install"
  199.            Ifstr(i) $(DoCopy) == "YES"
  200.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  201.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  202.                   Goto ShellCodeError
  203.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  204.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  205.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  206.                       goto ShellCodeError
  207.                   endif
  208.                   set Error = $($R0)
  209.                   Goto fatal
  210.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  211.                   Goto successful
  212.               Endif
  213.               Set SrcDir = $($R1)
  214.            Endif
  215.            install "Install-Option"
  216.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  217.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  218.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  219.                   goto ShellCodeError
  220.               endif
  221.               set Error = $($R0)
  222.               goto fatal
  223.            endif
  224.         endif
  225.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  226.             $(ProductSoftwareName), +
  227.             $(ProductSoftwareName), +
  228.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  229.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  230.             $(NetEventDLL)
  231.         Set OEM_ABANDON_SOFTWARE = TRUE
  232.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  233.             goto ShellCodeError
  234.         endif
  235.         set RegistryErrorIndex = $($R0)
  236.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  237.             EndWait
  238.             CloseRegKey $($R1)
  239.             CloseRegKey $($R2)
  240.             CloseRegKey $($R3)
  241.             CloseRegKey $($R4)
  242.             CloseRegKey $($R5)
  243.             goto fatalregistry
  244.         endif
  245.         set SoftProductKey      = $($R1)
  246.         Set SoftNetRuleKey      = $($R2)
  247.         Set SoftServiceKey      = $($R3)
  248.         Set SoftParameterKey    = $($R4)
  249.         Set SoftLinkageKey      = $($R5)
  250.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  251.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  252.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  253.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  254.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  255.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  256.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  257.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  258.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  259.             goto ShellCodeError
  260.         endif
  261.         set RegistryErrorIndex = $($R0)
  262.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  263.             EndWait
  264.             CloseRegKey $(SoftProductKey)
  265.             CloseRegKey $(SoftNetRuleKey)
  266.             CloseRegKey $(SoftServiceKey)
  267.             CloseRegKey $(SoftParameterKey)
  268.             CloseRegKey $(SoftLinkageKey)
  269.             goto fatalregistry
  270.         endif
  271.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  272.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  273.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  274.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  275.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  276.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  277.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  278.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  279.             goto ShellCodeError
  280.         endif
  281.         set RegistryErrorIndex = $($R0)
  282.         CloseRegKey $(SoftProductKey)
  283.         CloseRegKey $(SoftNetRuleKey)
  284.         CloseRegKey $(SoftServiceKey)
  285.         CloseRegKey $(SoftParameterKey)
  286.         CloseRegKey $(SoftLinkageKey)
  287.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  288.             EndWait
  289.             goto fatalregistry
  290.         endif
  291.     endif
  292.     ForListDo $(AdapterList)
  293.         set BusNum = *($($),1)
  294.         set SlotNum = *($($),2)
  295.         Debug-Output $(BusNum)
  296.         Debug-Output $(SlotNum)
  297.         Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
  298.             $(SlotNum), $(ProductHardwareDescription), $(ProductHardwareName)
  299.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  300.             goto ShellCodeError
  301.         endif
  302.         ifstr $($R0) != "NO_ERROR"
  303.             set Error = $($R0)
  304.             goto fatal
  305.         endif
  306.         ifstr(i) $($R1) != "YES"
  307.                 Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  308.                 ifint $($R4) != -1
  309.                     Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  310.                 endif
  311.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  312.                     goto ShellCodeError
  313.                 endif
  314.                 set RegistryErrorIndex = $($R0)
  315.                 Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  316.                     EndWait
  317.                     CloseRegKey $($R1)
  318.                     CloseRegKey $($R2)
  319.                     CloseRegKey $($R3)
  320.                     goto fatalregistry
  321.                 endif
  322.                 Set HardNetCardKey      = $($R1)
  323.                 Set HardNetRuleKey      = $($R2)
  324.                 Set HardParameterKey    = $($R3)
  325.                 set AdapterNumber       = $($R4)
  326.                 set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  327.                                    {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  328.                                    {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  329.                                    {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  330.                                    {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  331.                                    {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  332.                 Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
  333.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  334.                     goto ShellCodeError
  335.                 endif
  336.                 set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  337.                                    {BusType,$(NoTitle),$(!REG_VT_DWORD),2},+
  338.                                    {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  339.                                    {EisaCompressedId,$(NoTitle),$(!REG_VT_DWORD),$(SMC8232_1BYTE)},+
  340.                                    {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)}}
  341.                 Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  342.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  343.                     goto ShellCodeError
  344.                 endif
  345.                  set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  346.                  set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  347.                  set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  348.                                      {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  349.                                      {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  350.                                      {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  351.                 Shell  $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
  352.                 CloseRegKey $(HardNetCardKey)
  353.                 CloseRegKey $(HardNetRuleKey)
  354.                 CloseRegKey $(HardParameterKey)
  355.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  356.                     goto ShellCodeError
  357.                 endif
  358.         endif
  359.     EndForListDo
  360.     goto writeparameters
  361. writeparameters = +
  362.     EndWait
  363.     goto successful
  364. bindingadapter =+
  365.     set Error = "Binding: Sorry, not yet implemented."
  366.     goto fatal
  367. removeadapter = +
  368.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  369.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  370.             $(ProductSoftwareName)
  371.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  372.             Debug-Output "ShellCode error"
  373.             goto ShellCodeError
  374.         endif
  375.         set RegistryErrorIndex = $($R0)
  376.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  377.             goto fatalregistry
  378.         endif
  379.     else
  380.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  381.             $(ProductSoftwareName), $(!NTN_RegBase)
  382.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  383.             Debug-Output "ShellCode error"
  384.             goto ShellCodeError
  385.         endif
  386.         set RegistryErrorIndex = $($R0)
  387.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  388.             goto fatalregistry
  389.         endif
  390.     endif
  391.     goto end
  392. UpgradeSoftware = +
  393.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  394.         OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  395.         Ifstr $(KeyProduct) != $(KeyNull)
  396.             GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  397.             set Version = *($(VersionInfo), 4)
  398.             Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  399.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  400.                 Debug-Output "ShellCode error"
  401.                 goto ShellCodeError
  402.             endif
  403.             set !UG_Filename = $($R0)
  404.             ifstr(i) $(!UG_Filename) != ""
  405.                 install "Install-Update"
  406.                 ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  407.                     goto fatal
  408.                 endif
  409.             endif
  410.             SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  411.             SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  412.             ifint $(Version) != $(ProductVersion)
  413.             endif
  414.             CloseRegKey $(KeyProduct)
  415.         else
  416.             goto fatalregistry
  417.         endif
  418.     else
  419.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  420.               $(MAXIMUM_ALLOWED) NetworkCardKey
  421.         Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  422.             GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  423.             set ServiceName = *($(ServiceNameInfo), 4)
  424.             OpenRegKey $(NetworkCardKey) "" "NetRules" +
  425.                 $(MAXIMUM_ALLOWED) NetRuleKey
  426.             Ifstr(i) $(NetRuleKey) != $(KeyNull)
  427.             else
  428.                 goto fatalregistry
  429.             endif
  430.             CloseRegKey $(NetRules)
  431.             CloseRegKey $(NetworkCardKey)
  432.         else
  433.             goto fatalregistry
  434.         endif
  435.         OpenRegKey $(!REG_H_LOCAL) "" +
  436.               $(!NTN_ServiceBase)"\"$(ServiceName) +
  437.               $(MAXIMUM_ALLOWED) ServiceKey
  438.         Ifstr(i) $(ServiceKey) != $(KeyNull)
  439.             CloseRegKey $(ServiceKey)
  440.         else
  441.             goto fatalregistry
  442.         endif
  443.     endif
  444.     goto end
  445. successful = +
  446.     goto end
  447. abandon = +
  448.     ForListDo $(OEM_ABANDON_OPTIONS)
  449.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  450.             $(ProductSoftwareName), $($)
  451.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  452.             Debug-Output "ShellCode error"
  453.             goto ShellCodeError
  454.         endif
  455.         set RegistryErrorIndex = $($R0)
  456.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  457.             goto fatalregistry
  458.         endif
  459.     EndForListDo
  460.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  461.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  462.             $(ProductSoftwareName), FALSE
  463.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  464.             Debug-Output "ShellCode error"
  465.             goto ShellCodeError
  466.         endif
  467.         set RegistryErrorIndex = $($R0)
  468.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  469.             goto fatalregistry
  470.         endif
  471.     endif
  472.     goto end
  473. warning = +
  474.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  475.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  476.         goto ShellCodeError
  477.     endif
  478.     ifstr(i) $($R1) == "OK"
  479.         goto $(to)
  480.     else-ifstr(i) $($R1) == "CANCEL"
  481.         goto $(from)
  482.     else
  483.         goto "end"
  484.     endif
  485. nonfatalinfo = +
  486.     Set CommonStatus = STATUS_USERCANCEL
  487.     Set Severity = STATUS
  488.     goto nonfatalmsg
  489. nonfatal = +
  490.     Set Severity = NONFATAL
  491.     goto nonfatalmsg
  492. nonfatalmsg = +
  493.     ifstr(i) $(Error) == ""
  494.         Set Severity = NONFATAL
  495.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  496.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  497.             goto ShellCodeError
  498.         endif
  499.         set Error = $($R0)
  500.     endif
  501.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  502.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  503.         goto ShellCodeError
  504.     endif
  505.     ifstr(i) $($R1) == "OK"
  506.         goto $(from)
  507.     else
  508.         goto "end"
  509.     endif
  510. fatalregistry = +
  511.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  512.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  513.         goto ShellCodeError
  514.     endif
  515.     set Error = $($R0)
  516.     goto fatal
  517. fatal = +
  518.     ifstr(i) $(Error) == ""
  519.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  520.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  521.             goto ShellCodeError
  522.         endif
  523.         set Error = $($R0)
  524.     endif
  525.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  526.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  527.         goto ShellCodeError
  528.     endif
  529.     goto setfailed
  530. ShellCodeError = +
  531.     set DlgType      = "MessageBox"
  532.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  533.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  534.     set STF_MB_TYPE  = 1
  535.     set STF_MB_ICON  = 3
  536.     set STF_MB_DEF   = 1
  537.     ui start "Error Message"
  538.     goto setfailed
  539. setfailed = +
  540.     set CommonStatus = STATUS_FAILED
  541.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  542.         set OEM_ABANDON_ON = FALSE
  543.         goto abandon
  544.     endif
  545.     goto end
  546. end = +
  547.     goto term
  548. term = +
  549.     Return $(CommonStatus)
  550. [Install-Option]
  551.     set STF_VITAL = ""
  552.     ifstr(i) $(AddCopy) == "YES"
  553.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  554.     endif
  555.     ifstr(i) $(DoCopy) == "YES"
  556.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  557.        CopyFilesInCopyList
  558.     endif
  559.     ifstr(i) $(DoConfig) == "YES"
  560.     endif
  561.     Exit
  562. [Install-Update]
  563.    set STF_VITAL        = ""
  564.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  565.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  566.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  567.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  568.    CopyFilesInCopyList
  569.    exit
  570. [Source Media Descriptions]
  571. ;    1  = "Windows NT Setup Disk #1"  , TAGFILE = disk1
  572. ;    2  = "Windows NT Setup CD-ROM Disk"  , TAGFILE = disk2
  573.      99 = "SMC SUPER DISK "  , TAGFILE = DISK.ID
  574. [ProductType]
  575. STF_PRODUCT  = Winnt
  576. STF_PLATFORM = I386
  577. [Files-Inf]
  578. 99,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  579. [Files-SMC8232]
  580. 99,SMC8232N.SYS , SIZE=38400
  581. [LanguagesSupported]
  582.     ENG
  583. [OptionsTextENG]
  584.     SMC8232     = "SMC 82M32 EISA EtherCard Elite32 Ultra Adapter"
  585. [FileConstantsENG]
  586. ProCaption   = "Windows NT Setup"
  587. ProCancel    = "Cancel"
  588. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  589.                "Are you sure you want to cancel copying files?"
  590. ProCancelCap = "Network Setup Message"
  591. ProText1     = "Copying:"
  592. ProText2     = "To:"
  593. FunctionTitle   = "SMC Adapter Card Setup"
  594. ProductSoftwareDescription      = "SMC 82M32 EtherCard Elite32 Driver"
  595. ProductHardwareDescription      = "SMC 82M32 EISA EtherCard Elite32 Ultra"
  596. CANNOT_FIND_ANY_CARD            = "Network card is not present in the system"
  597. ProductSoftwareTitle    = "SMC 82M32 EtherCard Elite32 Driver"
  598. ProductHardwareTitle    = "SMC EISA EtherCard Elite32 Ultra "
  599. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  600. ShellCodeErrorText      = "Shell Code Error."
  601. [DialogConstantsENG]
  602. Help        = "&Help"
  603. Exit        = "Cancel"
  604. OK          = "OK"
  605. HelpContext = ""
  606. Continue    = "Continue"
  607. Cancel      = "Cancel"
  608. [FileDependentDlgENG]
  609.  
  610.  
  611.  
  612.